package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.FriendPraise;
import cn.wolfcode.trip.base.query.FriendPraiseQueryObject;

import java.util.List;

public interface FriendPraiseMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FriendPraise record);

    List<FriendPraise> selectForList(FriendPraiseQueryObject qo);

    /**
     * 根据用户id以及动态id查询点赞记录
     * @param qo
     * @return
     */
    FriendPraise selectById(FriendPraiseQueryObject qo);

    /**
     * 根据动态id和用户id删除
     * @param qo
     */
    void deleteByUserIdAndDynamicContentId(FriendPraiseQueryObject qo);
}